﻿#region Imports
using System;
using System.Windows.Forms;
using CommonUtilities.Extensions;
using CommonUtilities.Util;
#endregion

namespace CommonUtilities.Controls
{
    public partial class CUtil_ClearButton : UserControl
    {
        #region Declarations
        public event EventHandler Click;
        #endregion

        #region Constructors
        public CUtil_ClearButton()
        {
            InitializeComponent();
        }
        #endregion

        #region Methods
        public override string ToString()
        {
            return Utilities.ToString(this);
        }
        #endregion

        #region Events
        private void btnClear_Click(object sender, EventArgs e)
        {
            if (!this.Click.IsNull())
                this.Click(this, e);
        }
        #endregion
    }
}
